<?php


namespace app\admin\validate;

class PayAccount extends BaseAdmin
{
    // 验证规则
    protected $rule = [
        'name'  => 'require|length:3,10',
        'rate'  => 'require|number',
        'single'     => 'require|number',
        'daily'     => 'require|number',
        'account_use_type'  => 'require|number',
        'account_use_threshold'  => 'require|number',
        'param'    => 'require'
    ];

    // 验证提示
    protected $message = [
        'name.require'    => '账户名不能为空',
        'name.length'     => '账户名长度为6-30个字符之间',
        'rate.require'    => '账户费率不能为空',
        'rate.number'     => '账户费率必须为数字',
        'single.require'    => '账户单笔限额不能为空',
        'single.number'    => '账户单笔限额必须为数字',
        'daily.require'     => '账户当日限额不能为空',
        'daily.number'       => '账户当日限额必须为数字',
        'account_use_type.require'    => '轮询方案不能为空',
        'account_use_type.number'     => '轮询方案必须为数字',
        'account_use_threshold.require'    => '轮询阀值不能为空',
        'account_use_threshold.number'     => '轮询阀值必须为数字',
        'param.require'      => '支付配置不能为空'
    ];
}